<?php
use yii\helpers\Url;
use yii\widgets\LinkPager;

/*
**Team :
**Coding by 曾钰媛 1511240 170707
**This is the information list
*/
?>


<div class="panel">
    <div class="panel-title box-title">
        <span><?=$data['title']?></span>
        <?php if($this->context->more):?>
        <span class="pull-right"><a href="<?php echo Url::to(['pre-admin-information/index'])?>" class="font-12">更多»</a></span>
        <?php endif;?>
    </div>
    <div class="new-list">
    <?php foreach ($data['body'] as $list):?>
        <div class="panel-body border-bottom">      
            <div class="row">
                <div class=>
                    <h1><a href=<?php echo Url::to(['pre-admin-information/index'])?>><?=$list['Info_title']?></a></h1>
                    <span class="post-tags">
                        <span class="glyphicon glyphicon-user"></span><a href=#><?=$list['uid']?></a>&nbsp;
                        <span class="glyphicon glyphicon-time"></span><?=$list['Info_time']?>&nbsp;
                        <span class="glyphicon glyphicon-comment"></span><a href=#><?=$list['Info_type']?></a>
                    </span>
                    <a href=#><button class="btn btn-warning no-radius btn-sm pull-right">阅读全文</button></a>
                </div>
            </div>
        </div>
        <?php endforeach;?>            
    </div>
    <?php if($this->context->page):?>
    <div class="page"><?=LinkPager::widget(['pagination' => $data['page']]);?></div>
    <?php endif;?>
</div>